//
//  GzVC.swift
//  Auscultation
//
//  Created by 来 on 2020/11/28.
//

import UIKit

class GzVC: BaseVC {
    
    var msg_num: UILabel!

    override func viewDidLoad() {
        super.viewDidLoad()
        
        initUI()
    }
    
    override func viewDidAppear(_ animated: Bool) {
        super.viewDidAppear(animated)
        let paramet: [String: String] = [
            "encryptedData": "zFoamlSX95gBI7S05+e6HakuGltzhbckTNdkY0yZ2hU="
        ]
        EWERequest.lgf("remind", paramet, .get) { [weak self] (data) in
            let dataArray = (data as? [[String: Any]]) ?? []
            self?.msg_num.superview?.isHidden = dataArray.count == 0
            if dataArray.count > 0 {
                self?.msg_num.text = dataArray.count.description
            }
        } _: { (error) in
            SVProgressHUD.showError(error)
        }
    }
    
    // 消息
    @objc func s_xx(_ sender: UITapGestureRecognizer) {

        self.navigationController?.show(XxVC(), sender: self)
    }
    
    // 标注包
    @objc func s_bzb(_ sender: UITapGestureRecognizer) {
        self.navigationController?.show(BzrwbVC(), sender: self)
    }
    
    // 审核包
    @objc func s_shb(_ sender: UITapGestureRecognizer) {
        self.navigationController?.show(ShrwbVC(), sender: self)
    }
    
    // 标注工作台
    @objc func s_bzrwlb(_ sender: UITapGestureRecognizer) {
        self.navigationController?.show(BzgztVC(), sender: self)
    }
    
    // 审核工作台
    @objc func s_shrwlb(_ sender: UITapGestureRecognizer) {
        self.navigationController?.show(ShgztVC(), sender: self)
    }

    // 我的心音样本
    @objc func s_wdxyyb(_ sender: UITapGestureRecognizer) {
        self.navigationController?.show(WdxyybVC(), sender: self)
    }
    
    // 样本仲裁
    @objc func s_ybzc(_ sender: UITapGestureRecognizer) {
        self.navigationController?.show(YbzcVC(), sender: self)
    }
    
}
